<%@ page contentType="text/html; charset=utf-8" language="java" import="java.sql.*" errorPage="" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>登陆</title>
<link href="style/login.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" href="jslib/jquery-easyui-1.3.1/themes/gray/easyui.css">
	<link rel="stylesheet" type="text/css" href="jslib/jquery-easyui-1.3.1/themes/icon.css">
	<link rel="stylesheet" type="text/css" href="style/home.css">
	<script type="text/javascript" src="jslib/jquery-1.8.2.min.js" charset="utf-8"></script>
    <script type="text/javascript" src="jslib/jquery-easyui-1.3.1/locale/easyui-lang-zh_CN.js" charset="utf-8"></script>
	<script type="text/javascript" src="jslib/jquery-easyui-1.3.1/jquery.easyui.min.js" charset="utf-8"></script>
<script type="text/javascript" charset="utf-8">
	function submitLoginForm () {
		// body...
		$.ajax({
		url : 'loginAction',
		type : 'post',
		data : 
			{
			 username : $('#username input').val(),
			 password : $('#password input').val()
			},
		cache : false,
		datatype : 'json',
		success : function(r){
			r = $.parseJSON(r);
			if (r && r.success) {
				window.location.href='index.jsp';
			}
			else
			{
				$.messager.alert(r.msg);
			}
		}
		});
	}
</script>
</head>
<body >
	<div id="logo"></div>
    <div id="login">
	
	     <div id="top">
		      <div id="top_left"></div>
			  <div id="top_center"></div>
		 </div>
		 
		 <div id="center">
		      <div id="center_left"></div>
			  <div id="center_middle">
			       <div id="username">用户名
			         <input type="text" name="textfield" />
			       </div>
				   <div id="password">密码&nbsp&nbsp&nbsp&nbsp
				     <input type="password" name="textfield2" />
				   </div>
				   <div id="btn"><a href="#" onclick="submitLoginForm()">登陆</a><a href="#">清空</a></div>
			  
			  </div>
			  <div id="center_right"></div>		 
		 </div>
		 <div id="down">
		      <div id="down_left">
			      <div id="inf">
                       <span class="inf_text">版本信息</span>
					   <span class="copyright" style="color:#fff">三一智慧矿山管理系统 2013 v1.0</span>
			      </div>
			  </div>
			  <div id="down_center"></div>		 
		 </div>
	</div>
	<div id="buttom"></div>
</body>
</html>
